<template>
  <div class="navigation">
    <el-button type="text" @click="toReturn" style="border: none">
      <div style="font-size: 16px; display: flex">
        <el-icon size="16"><ArrowLeftBold /></el-icon>
        <div>返回</div>
      </div>
    </el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()

const toReturn = () => {
  localStorage.removeItem('update-blog')
  router.go(-1)
}
</script>

<style scoped>
.navigation {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  z-index: 100;
  padding: 0 20px;
}
</style>
